PROG=report
CC=latex 
CCV=pdflatex
DATE=`date "+%Y_%m_%d+%H_%M"`

all: dvi bib pdf

dvi:
	$(CC) $(PROG).tex

pdf:
	$(CCV) $(PROG).tex 

bib:
	bibtex $(PROG)

tar:
	tar -cjvf sensorcomm+$(DATE).tbz2 sensorcomm.{tex,toc,pdf,bib} Makefile latex8.{sty,bst} diff.*

clean:
	@rm -f $(PROG).{aux,log,out,dvi,blg,bbl} *.sw* *~

mrproper:
	@rm -f $(PROG).{aux,log,out,dvi,blg,bbl,pdf,toc} *.sw *~
